<?xml version = '1.0' encoding = 'UTF-8'?>
<HBRRepo><variables/><rulesets/><rules><rule id="1" name="Operating Expenses Forecast" product="Planning"><property name="application">Vision</property><property name="plantype">Plan1</property><property name="display_label">Operating Expenses Forecast</property><property name="enablePostProcessing">false</property><property name="enablePreProcessing">false</property><script type="calcscript">SET UPDATECALC OFF;
SET AGGMISSG ON;

FIX (&amp;CurForecast,"P_000",@CHILDREN("403"))
   FIX (@RELATIVE("7001",0))
    /*Driver: 1 = % of Revenue, 2 = Units, 3 = Headcount Hours, 4 = Sales Calls, 5 = Trips, 6 = Square Feet, 7 = Input or Blank */
    /*Method: 1 = Last Year Actual, 2 = Current Year Plan, 3 = Current Year Forecast */
  "Driver Volume" (
    IF ((@ISMBR(&amp;QRFYr1) AND @ISDESC(&amp;QRFPer1)) OR (@ISMBR(&amp;QRFYr2) AND @ISDESC(&amp;QRFPer2)) OR (@ISMBR(&amp;QRFYr3) AND @ISDESC(&amp;QRFPer3)) OR (@ISMBR(&amp;QRFYr4) AND @ISDESC(&amp;QRFPer4)))
        IF ("Driver"->&amp;QRFYr1->"BegBalance" ==1)
          "Driver Volume" = "4001"->"P_TP1"->&amp;CurVersion;
        ELSEIF ("Driver"->&amp;QRFYr1->"BegBalance" ==2)
          "Driver Volume" = "Units"->"P_TP1"->&amp;CurVersion;
        ELSEIF ("Driver"->&amp;QRFYr1->"BegBalance" ==3)
          "Driver Volume" = "9000"->&amp;CurVersion * 2080/12;
        ELSEIF ("Driver"->&amp;QRFYr1->"BegBalance" ==4)
          "Driver Volume" = "Sales Calls"->"BegBalance"->&amp;CurVersion->&amp;QRFYr4/12;
        ELSEIF ("Driver"->&amp;QRFYr1->"BegBalance" ==5)
          "Driver Volume" = "Trips"->&amp;CurVersion;
        ELSEIF ("Driver"->&amp;QRFYr1->"BegBalance" ==6)
          "Driver Volume" = "Square Feet"->&amp;CurVersion/12;
        ELSEIF (("Driver"->&amp;QRFYr1->"BegBalance" ==7 OR "Driver"->&amp;QRFYr1 == #missing) AND "Method"->"BegBalance" == 1)
          "Driver Volume" = "Actual"->&amp;ActVersion->&amp;LastYr;
        ELSEIF (("Driver"->&amp;QRFYr1->"BegBalance" ==7 OR "Driver"->&amp;QRFYr1 == #missing) AND "Method"->"BegBalance" == 2)
          "Driver Volume" = "Plan"->&amp;PlanVersion->&amp;CurYr;
        ELSEIF (("Driver"->&amp;QRFYr1->"BegBalance" ==7 OR "Driver"->&amp;QRFYr1 == #missing) AND "Method"->"BegBalance" == 3)
          "Driver Volume" = "Forecast"->&amp;ForVersion->&amp;CurYr;
        ENDIF
      ENDIF
	  )
   ENDFIX
ENDFIX

FIX (&amp;CurForecast,"P_000",@CHILDREN("403"))
	FIX (@RELATIVE("7001",0))
  "Driver Rate" (
    IF ((@ISMBR(&amp;QRFYr1) AND @ISDESC(&amp;QRFPer1)) OR (@ISMBR(&amp;QRFYr2) AND @ISDESC(&amp;QRFPer2)) OR (@ISMBR(&amp;QRFYr3) AND @ISDESC(&amp;QRFPer3)) OR (@ISMBR(&amp;QRFYr4) AND @ISDESC(&amp;QRFPer4)))
       IF ("Driver"->"BegBalance"->&amp;QRFYr1 == 7)
          &amp;CurVersion = "Driver Volume";
       ELSE
          &amp;CurVersion = "Driver Volume" * "Driver Rate"->"BegBalance"->&amp;QRFYr1;
       ENDIF
    ENDIF
	     )
	ENDFIX
ENDFIX

FIX (&amp;CurForecast,&amp;CurVersion,"P_000","Trips","Square Feet","9000")
   "403";
ENDFIX

FIX (&amp;CurForecast,&amp;CurVersion,"P_000",@ICHILDREN("403"))
   @IDESCENDANTS("OpEx");
ENDFIX


FIX (&amp;CurForecast,"P_000","403")
   "Average Salaries" = "5800" / "9000";
   "Employee Benefits %" = "6100" / "5800";
ENDFIX

</script></rule></rules><components/><deployobjects><deployobject product="2" application="vision" plantype="plan1" obj_id="1" obj_type="1" name="OPERATING EXPENSES FORECAST"/></deployobjects></HBRRepo>